package io.sage.modules.sensor.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import io.sage.modules.sensor.entity.SysSensorConfiguration;
import io.sage.modules.sensor.entity.SysSensorConfigurationExample;

public interface SysSensorConfigurationMapper {
	
    int countByExample(SysSensorConfigurationExample example);

    int deleteByExample(SysSensorConfigurationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SysSensorConfiguration record);

    int insertSelective(SysSensorConfiguration record);

    List<SysSensorConfiguration> selectByExample(SysSensorConfigurationExample example);

    SysSensorConfiguration selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysSensorConfiguration record, @Param("example") SysSensorConfigurationExample example);

    int updateByExample(@Param("record") SysSensorConfiguration record, @Param("example") SysSensorConfigurationExample example);

    int updateByPrimaryKeySelective(SysSensorConfiguration record);

    int updateByPrimaryKey(SysSensorConfiguration record);
    
    /**
     * 查看所有的传感器
     * @param params
     * @return
     */
    List<SysSensorConfiguration> selectSensorList(Map<String, Object> params);
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);
	
	/**
	 * 根据硬件的查询地址去查找硬件的id
	 * @param querySensor
	 * @return
	 */
	SysSensorConfiguration selectByquerySensor(String querySensor);
}